from sqlalchemy import create_engine
# from constants import DB_URI

# 数据库的配置变量
HOSTNAME = '127.0.0.1'
PORT     = '3307'
DATABASE = 'selwork'
USERNAME = 'root'
PASSWORD = 'rootroot'
DB_URI = 'mysql+mysqldb://{}:{}@{}:{}/{}'.format(USERNAME,PASSWORD,HOSTNAME,PORT,DATABASE)

# 创建数据库引擎
engine = create_engine(DB_URI)
